from django.contrib import admin
from wanbooks.catalog.models import Edition, Creator, Credit

class CreditInline(admin.TabularInline):
    model = Credit

class EditionAdmin(admin.ModelAdmin):
    inlines = [
        CreditInline,
    ]


admin.site.register(Edition, EditionAdmin)
admin.site.register(Creator)
admin.site.register(Credit)
